import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { adviselist } from '../../providers/adviselist';
import { PubApi } from '../../providers/pubapi';

@Component({
    selector: 'page-returntask',
    templateUrl: 'returntask.html'
})

export class returntaskPage {
    public progresslist: Array<any>;//=[{a:"aaa",b:"d"},{a:12,b:12333},{a:3435,b:"dddd"}];
    model:any;
    modeltask:any;
    constructor(public nav: NavController, public navParams: NavParams, public pubapi: PubApi) {

           this.model = navParams.get("model");
            this.progresslist = navParams.get("modeltask");
     
    }
    itemSelected(item)
    {
        let l=item;
        this.model.FlowTasks.push(l);
          this.pubapi.post("FormData/Update", this.model, function (res) {
                    let r = res.data;
                })

    }
}